CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )

SET( PROJECT_NAME_TEMP "PhiolTest" )

IF ( PhiolLib_SOURCE_DIR )

	PROJECT( ${PROJECT_NAME_TEMP} )

	INCLUDE_DIRECTORIES( ${PhiolLib_SOURCE_DIR} )

	SET	(	SOURCES
			Main.cpp
		)
		
	IF( CMAKE_SYSTEM_NAME MATCHES "Windows" )
		ADD_DEFINITIONS(-DUNICODE -D_UNICODE)		# Set Unicode as character set for Visual Studio projects. By default it's Multi-Byte
	ENDIF()

	ADD_EXECUTABLE( ${PROJECT_NAME} ${SOURCES} )

	TARGET_LINK_LIBRARIES( ${PROJECT_NAME} PhiolLib ${Phidget21_LIBRARY} )

ELSE()
	
	MESSAGE("Can't find PhiolLib. Project ${PROJECT_NAME_TEMP} won't be compiled")

ENDIF()